<%@ Control Language="C#" %>
<%@ import Namespace="Memories" %>
<%@ import Namespace="Memories.Entities" %>
<%@ import Namespace="System.Collections.Generic" %>
<script runat="server">

    public List<Link> Links = new List<Link>();
    
    string format = "<a href=\"{1}\" title=\"{2}\" >{0}</a> / ";
    string lastformat = "{0}";    
    
    void Page_Load(Object sender, EventArgs e) {
        for (int i = 0; i < Links.Count; i++)
        {
            if (i == Links.Count - 1)
            {
                myLiteral.Text += String.Format(lastformat,Links[i].Text);
            }
            else
            {
                myLiteral.Text += String.Format(format, Links[i].Text, Links[i].Url, Links[i].Title);
            }
        }
    }
  
</script>
<asp:Literal id="myLiteral" runat="server"></asp:Literal>
